package com.youxue.teachin.set.child.my;

import java.util.List;

import com.library.uiframework.mvp.PagingDataLoadPresenter;
import com.library.uiframework.mvp.PagingDataLoadView;
import com.youxue.teachin.common.vo.UserVO;
import com.youxue.teachin.set.main.maper.SetMaper;
import com.youxue.teachin.user.userSystem.UserSystem;

/**
 * 在此写用途
 *
 * @author: zhiwei
 * @date: 2017-10-05 21:41
 * @version: 9.1.0
 */
public class MyDetailPresenter extends PagingDataLoadPresenter<PagingDataLoadView> {
    /**
     * @param pageDataLoadingView pageDataLoadingView
     */
    protected MyDetailPresenter(PagingDataLoadView pageDataLoadingView) {
        super(pageDataLoadingView);
    }

    @Override
    protected void load(int page, boolean force) {
        UserVO userVO = UserSystem.getInstance().getUserVO();
        List list = SetMaper.transformUseDetail(userVO);
        handleLoadSuccess(list, 1, 1);

    }
}
